import { postAxios, getAxios, postDownloadAxios } from "@/lib/http";

export const transaxleApi = {
  // 获取详情
  getById: data => {
    return getAxios(`/transaxle/getById/${data}`);
  },
  // 添加驱动桥 @author 何杺
  addTransaxle: data => {
    return postAxios("/transaxle/add", data);
  },
  // 分页查询驱动桥 @author 何杺
  queryTransaxle: data => {
    return postAxios("/transaxle/page/query", data);
  },
  // 批量删除驱动桥 @author 何杺
  batchDeleteTransaxle: idList => {
    return postAxios("/transaxle/deleteByIds", idList);
  },
  // 修改驱动桥  @author 何杺
  updateTransaxle: data => {
    return postAxios("/transaxle/update", data);
  },
  // 导出全部  @author 何杺
  exportAll: data => {
    return postDownloadAxios("/transaxle/export/all", data);
  },
  // 批量导出  @author 何杺
  batchExport: idList => {
    return postDownloadAxios("/transaxle/export/batch", idList);
  }
};
